package edu.stu.cs.software.family.shoppingcart.domian;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.stu.cs.software.family.base.domain.BaseEntity;

@Table(name="O_SHOPPINGCART_ORFER")
@Entity
public class Order extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1684557277523676351L;

	
	@ManyToOne
	@JoinColumn(name = "ShoppingCart_ID")
	ShoppingCart shoppingcart;
	@Column(name = "CODE")
	String code;

	//Order status
	@Column(name = "ORDERSTATUS")
	String OrderStatus;

	//Paid in amount
	@Column(name = "ACTUCLPAID")
	String ActualPaid;


	//Creation time
	@Column(name = "CREATIONTIME")
	String CreationTime;


	public ShoppingCart getShoppingcart() {
		return shoppingcart;
	}


	public void setShoppingcart(ShoppingCart shoppingcart) {
		this.shoppingcart = shoppingcart;
	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getOrderStatus() {
		return OrderStatus;
	}


	public void setOrderStatus(String orderStatus) {
		OrderStatus = orderStatus;
	}


	public String getActualPaid() {
		return ActualPaid;
	}


	public void setActualPaid(String actualPaid) {
		ActualPaid = actualPaid;
	}


	public String getCreationTime() {
		return CreationTime;
	}


	public void setCreationTime(String creationTime) {
		CreationTime = creationTime;
	}
	
}
